Help > Reference > Macros > Tab object > WordList property

WordList property

This property returns a collection of Word objects representing the words, found for the active search.

Member of

Tab

Type

Read-Only Variant property (Words Collection)

The following example enumerates the words in the search results of the active tab, writing them to a file called "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For Each Word in App.ActiveTab.WordList
  Output.WriteLine Word.Name & " - " & Word.Count
Next

See Also

Macro Object Model

Tab